package com.ag.dgm.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ag.dao.TbEventDAO;
import com.ag.dgm.service.EventNameService;

@Service("eventNameServiceImpl")
public class EventNameServiceImpl implements EventNameService {

	
	@Resource(name="TbEventDAO")
	private TbEventDAO dao;

	public TbEventDAO getDao() {
		return dao;
	}

	public void setDao(TbEventDAO dao) {
		this.dao = dao;
	}

	@Override
	public String gainName(String eventId) {
		return (dao.findById(eventId)).getEEventname();
	}
	
	
	
}
